package com.dbgs.insurance.insuredperson.activity.apply;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatImageView;
import android.support.v7.widget.AppCompatTextView;
import android.view.View;

import com.dbgs.insurance.insuredperson.R;
import com.dbgs.insurance.insuredperson.constants.ConstInt;
import com.hss.base.BaseActivty;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class ApplySuccessActivity extends BaseActivty {
    @BindView(R.id.img)
    AppCompatImageView img;
    @BindView(R.id.success_title)
    AppCompatTextView successTitle;
    @BindView(R.id.return_tv)
    AppCompatTextView returnTv;
    @BindView(R.id.submit_success_info)
    AppCompatTextView submitSuccessInfo;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register_success);
        ButterKnife.bind(this);
        initData();
        initView();
        initListener();
    }

    @Override
    public void initView() {
        super.initView();
        submitSuccessInfo.setVisibility(View.VISIBLE);
        successTitle.setText(R.string.str_submit_success);
    }

    @OnClick(R.id.return_tv)
    public void onViewClicked() {
        setResult(ConstInt.RESULT_VALUE_CHANGED);
        exit();
    }
}
